package com.skyhub.mapper;

import com.skyhub.common.domain.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface EditorMapper {

    @Update("update users set avatar=#{url} where id=#{userId}")
    public void uploadAvatar(@Param("url") String url,@Param("userId")Integer userId);

    @Update("update users set username=#{username},gender=#{gender},email=#{email},phone=#{phone},company=#{company},office=#{office},introduce=#{introduce} where id=#{id}")
    public void updateUser(User user);

}
